MATHEMATICAL ENGINEERING TECHNICAL REPORTS A Parallel Tree Contraction Algorithm on Non-Binary Trees
نویسندگان
چکیده
Parallel tree contraction is an important framework to develop efficient parallel algorithms on trees. Parallel tree contraction gives an appropriate scheduling for parallel computations on trees, and the scheduling brings efficient parallel algorithms to us. While there are many studies for efficient algorithms of parallel tree contraction and implementation of various parallel computations based on them, few studies give practical parallel tree contraction algorithms on non-binary trees. Some studies just mention that any tree can be encoded as a binary tree; however, binary-tree encoding breaks the original structure, and this makes it difficult to develop parallel algorithms following parallel tree contraction algorithms. In this paper, we propose a new parallel tree contraction algorithm. Our algorithm is a generalization of that proposed by Abrahamson et al., and works well even for nonbinary trees. Our algorithm requires no binary-tree encoding, and thus, it is easy to develop parallel algorithms based on our parallel tree contraction algorithm. In addition, we show sufficient conditions when computations can be parallelized based on our algorithm, and the conditions are generalizations of those known on binary trees.
منابع مشابه
A New Heuristic Algorithm for Drawing Binary Trees within Arbitrary Polygons Based on Center of Gravity
Graphs have enormous usage in software engineering, network and electrical engineering. In fact graphs drawing is a geometrically representation of information. Among graphs, trees are concentrated because of their ability in hierarchical extension as well as processing VLSI circuit. Many algorithms have been proposed for drawing binary trees within polygons. However these algorithms generate b...
متن کاملMATHEMATICAL ENGINEERING TECHNICAL REPORTS Efficient Implementation of Tree Skeletons on Distributed-Memory Parallel Computers
Parallel tree skeletons are basic computational patterns that encourage us to develop parallel programs manipulating trees. In this paper, we develop an efficient implementation of parallel tree skeletons on distributed-memory parallel computers. In our implementation, we divide a binary tree based on the idea of m-bridges to obtain high locality, and represent local segments as serialized arra...
متن کاملMATHEMATICAL ENGINEERING TECHNICAL REPORTS Design and Implementation of General Tree Skeletons
Trees are important datatypes that are often used in representing structured data such as XML. Though trees are widely used in sequential programming, it is hard to write efficient parallel programs manipulating trees of arbitrary shapes, because of their irregular and ill-balanced structures. In this paper, we propose a solution for them based on the skeletal approach, in particular for genera...
متن کاملA novel algorithm to determine the leaf (leaves) of a binary tree from its preorder and postorder traversals
Binary trees are essential structures in Computer Science. The leaf (leaves) of a binary tree is one of the most significant aspects of it. In this study, we prove that the order of a leaf (leaves) of a binary tree is the same in the main tree traversals; preorder, inorder, and postorder. Then, we prove that given the preorder and postorder traversals of a binary tree, the leaf (leaves) of a bi...
متن کاملMATHEMATICAL ENGINEERING TECHNICAL REPORTS Balanced Ternary-Tree Representation of Binary Trees and Balancing Algorithms
In this paper, we propose novel representation of binary trees, named the balanced ternary-tree representation. We examine flexible division of binary trees in which we can divide a tree at any node rather than just at the root, and introduce the ternary-tree representation for the flexible division. Due to the flexibility of division, for any binary tree, balanced or ill-balanced, there is alw...
متن کامل